
import request from '@/utils/request';

// export function listData(query) {
//   return request({
//     url: `/sociaty/rate/list`,
//     method: 'post',
//     data: query
//   });
// }
export function listData(query) {
  return request({
    url: `/sociaty/rate/list`+query,
    method: 'get'
  });
}

// sociaty/rate/delete  ，sociaty/rate/add，sociaty/rate/list
// sociaty/hall/list，sociaty/hall/export
// export function roomListData(query) {
//   return request({
//     url: `/sociaty/hall/list`,
//     method: 'post',
//     data: query
//   });
// }
// 二级房间的列表
export function roomListData(query) {
  return request({
    url: `/sociaty/hall/list`+query,
    method: 'get',
  });
}

export function rate(form) {
  return request({
    url: '/sociaty/rate/add',
    method: 'post',
    data: form
  });
}

export function updateData(form) {
  return request({
    url: '/game/save',
    method: 'post',
    data: form
  });
}

// 父级同意
export function fatherAgree(form) {
  return request({
    url: '/sociaty/statistic/sociaty_agree',
    method: 'post',
    data: form
  });
}
// 子级编辑
export function updateChild(form) {
  return request({
    url: '/sociaty/statistic/update_should_amount',
    method: 'post',
    data: form
  });
}
// 父级编辑
export function updateFather(form) {
  return request({
    url: '/sociaty/statistic/sociaty_update',
    method: 'post',
    data: form
  });
}
export function deleteData(query) {
  return request({
    url: '/game/del',
    method: 'post',
    data: query
  });
}



export function statisticAgree(query) {
  return request({
    url: '/sociaty/statistic/agree',
    method: 'post',
    data: query
  });
}

export function statisticFreeze(query) {
  return request({
    url: '/sociaty/statistic/freeze',
    method: 'post',
    data: query
  });
}

export function statisticUnfreeze(query) {
  return request({
    url: '/sociaty/statistic/unfreeze',
    method: 'post',
    data: query
  });
}

export function statisticExport(query) {
  return request({
    url: `/sociaty/statistic/export${query}`,
    method: 'get',
  });
}